package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.domain.SysFrom;
import com.ruoyi.system.service.ISysDataScreenService;
import com.ruoyi.system.service.ISysWayoftravelService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;


/**
 * 大屏Controller
 * 
 * @author ruoyi
 * @date 2020-10-12
 */
@Controller
@RequestMapping("/system/datascreen")
public class DataScreenController extends BaseController
{
    private String prefix = "system/datascreen";

    @Autowired
    private ISysDataScreenService SysDataScreenService;

    @RequiresPermissions("system:wayoftravel:view")
    @GetMapping()
    public String wayoftravel()
    {
        return prefix + "/datascreen";
    }

    /**
     * 查询来源地
     */
    @RequiresPermissions("system:wayoftravel:list")
    @GetMapping("/from")
    @ResponseBody
    public List<SysFrom> gender()

    {
        System.out.printf("汪树良大傻逼");
        List<SysFrom> from = SysDataScreenService.from();
        return from;
    }

}
